package com.fingard.dsp.bank.reqrespobj.importlc.detail;

import com.fingard.xml.XElement;

/**
 * Created by Lewis on 2017/12/15.
 */
public class ReqImportLCQryDetail {
    //共用参数
    public String bankBchCode;//协办行地区号
    public String bankBchNo;//协办行网点号
    public String bankOrgCode;//承办行地区号
    public String bankOrgNo;//承办行网点号
    public String usage;//用途
    public String authExpiryDate;//授权有效日期
    //开证
    public String appDate;//开证申请日期
    public String appAddr;//申请人名址
    public String appAccNo;//申请人结算账号
    public String feeAccNo;//申请人费用账号
    public String contractNo;//合同号
    //开证方式1：SWIFT2：TELEX3：BRIEF CABLE+MAILCONFIRMATION4：EXPRESS MAIL1.全球信用证？2.电开证3.简电开证4.信开证
    public String appType;
    public String advNameAddr;//通知行名址
    public String benNameAddr;//受益人名址
    public String LCexpiryDate;//有效期限
    public String expiryPlace;//有效期限地点
    public String LCCurrCode;//信用证币种
    public String LCAmt;//信用证金额
    public String amtUpFloat;//开证金额向上浮动
    public String amtDownFloat;//开证金额向下浮动
    //兑付指定银行类型1-ANY BANK   2-ADVISING BANK 3-OTHERS1.任何银行2.通知行3.其他银行？议付行？
    public String specBankType;
    public String specBankSwft;//兑付指定银行Swift
    public String specBankNameAddr;//兑付指定银行名址
    public String payType;//兑付方式D:延期付款M:混合付款N：议付A:承兑付款P:即期付款
    public String draftPayDays;//天数
    public String draftPct;//汇票占发票金额百分比
    public String defOrMixPayCla;//迟期/混合付款条款
    public String loadSpot;//装船/发运/接受监管地点
    public String destSpot;//目的地
    public String unLoadPort;//卸货港
    public String latestDate;//最迟装运期
    public String goodDesc;//货物/劳务描述
    public String billCla;//单据条款
    public String addiCondiCla;//附加条款
    public String feeCla;//费用条款
    public String presPeriod;//交单期限
    public String cfmInstype;//保兑指示1-确认 2-可能保兑 3-不保兑
    public String memo;//客户备注
    public String contactPerson;//联系人姓名
    public String contactNum;//联系电话

    //开证申请修改添加字段
    public String LCNo;//信用证编号

    //不符点
    public String BRNo;//业务BR编号
    public String billCurrCode;//电提单据币种
    public String billAmt;//电提单据金额
    public String accDiffer;//是否接受不符点1-是；2-否

    //来电承兑指令
    public String comBillDate;//来单日期
    public String payDueDate;//付款到期日
    public String payTotalAmt;//付款总金额
    public String payCurrCode;//付款总金额币种

    //来单承付指令
    public String valueDate;//起息日期
    public String chargeOffDetail;//出账明细?

    //退单申请
    public String rejDate;//拒付日期?
    public String rejCur;//币种?
    public String rejAmt;//金额?

    public XElement srcElement;

    public ReqImportLCQryDetail(XElement p_element) throws Exception {
        srcElement = p_element;
        bankBchCode = srcElement.getSingleText("BankBchCode");
        bankBchNo = srcElement.getSingleText("BankBchNo");
        bankOrgCode = srcElement.getSingleText("BankOrgCode");
        bankOrgNo = srcElement.getSingleText("BankOrgNo");
        usage = srcElement.getSingleText("Usage");
        authExpiryDate = srcElement.getSingleText("AuthExpiryDate");
        appDate = srcElement.getSingleText("AppDate");
        appAddr = srcElement.getSingleText("AppAddr");
        appAccNo = srcElement.getSingleText("AppAccNo");
        feeAccNo = srcElement.getSingleText("FeeAccNo");
        contractNo = srcElement.getSingleText("ContractNo");
        appType = srcElement.getSingleText("AppType");
        advNameAddr = srcElement.getSingleText("AdvNameAddr");
        benNameAddr = srcElement.getSingleText("BenNameAddr");
        LCexpiryDate = srcElement.getSingleText("LCexpiryDate");
        expiryPlace = srcElement.getSingleText("ExpiryPlace");
        LCCurrCode = srcElement.getSingleText("LCCurrCode");
        LCAmt = srcElement.getSingleText("LCAmt");
        amtUpFloat = srcElement.getSingleText("AmtUpFloat");
        amtDownFloat = srcElement.getSingleText("AmtDownFloat");
        specBankType = srcElement.getSingleText("SpecBankType");
        specBankSwft = srcElement.getSingleText("SpecBankSwft");
        specBankNameAddr = srcElement.getSingleText("SpecBankNameAddr");
        payType = srcElement.getSingleText("PayType");
        draftPayDays = srcElement.getSingleText("DraftPayDays");
        draftPct = srcElement.getSingleText("DraftPct");
        defOrMixPayCla = srcElement.getSingleText("DefOrMixPayCla");
        loadSpot = srcElement.getSingleText("LoadSpot");
        destSpot = srcElement.getSingleText("DestSpot");
        unLoadPort = srcElement.getSingleText("UnLoadPort");
        latestDate = srcElement.getSingleText("LatestDate");
        goodDesc = srcElement.getSingleText("GoodDesc");
        billCla = srcElement.getSingleText("BillCla");
        addiCondiCla = srcElement.getSingleText("AddiCondiCla");
        feeCla = srcElement.getSingleText("FeeCla");
        presPeriod = srcElement.getSingleText("PresPeriod");
        cfmInstype = srcElement.getSingleText("CfmInstype");
        memo = srcElement.getSingleText("Memo");
        contactPerson = srcElement.getSingleText("ContactPerson");
        contactNum = srcElement.getSingleText("ContactNum");
        LCNo = srcElement.getSingleText("LCNo");
        BRNo = srcElement.getSingleText("BRNo");
        billCurrCode = srcElement.getSingleText("BillCurrCode");
        billAmt = srcElement.getSingleText("BillAmt");
        accDiffer = srcElement.getSingleText("AccDiffer");
        comBillDate = srcElement.getSingleText("ComBillDate");
        payDueDate = srcElement.getSingleText("PayDueDate");
        payTotalAmt = srcElement.getSingleText("PayTotalAmt");
        payCurrCode = srcElement.getSingleText("PayCurrCode");
        valueDate = srcElement.getSingleText("ValueDate");
        chargeOffDetail = srcElement.getSingleText("ChargeOffDetail");
        rejDate = srcElement.getSingleText("RejDate");
        rejCur = srcElement.getSingleText("RejCur");
        rejAmt = srcElement.getSingleText("RejAmt");
    }
}
